//
//  E7DialogLayer.h
//  EndlessBattle
//
//  Created by cc on 12-3-30.
//  Copyright (c) 2012年 PalmGame. All rights reserved.
//

#ifndef EndlessBattle_E7DialogLayer_h
#define EndlessBattle_E7DialogLayer_h

#include "E7GameDefine.h"

class CE7DialogLayer : public CE7Layer
{
public:
    CE7DialogLayer(CE7Layer* pParent) ;
    ~CE7DialogLayer() ;

public:
    void ShowYESNO() ;
    void ShowOK() ;
    void Hide() ;

public:
    void SetVictory() ;
    void SetFailure() ;
    void SetLose() ;
    void SetRetry() ;
    void SetNext() ;
    void SetContinue() ;
//    void SetTurnEnd() ;
    void SetSingleLine(const char* str = "// TODO.") ;

private:
    void ClickedYES() ;
    void ClickedNO() ;
    void ClickedOK() ;

private:
    CE7Sprite*           m_pBackSprite ;
    CE7Sprite*           m_pVictorySprite ;
    CE7Sprite*           m_pFailureSprite ;
    CE7Sprite*           m_pLoseSprite ;
    CE7Sprite*           m_pRetrySprite ;
    CE7Sprite*           m_pNextSprite ;
    CE7Sprite*           m_pContinueSprite ;
//    CE7Sprite*           m_pTurnEndSprite ;
    CCMenu*              m_pButtons ;
    CCMenuItem*          m_pButtonYES ;
    CCMenuItem*          m_pButtonNO ;
    CCMenuItem*          m_pButtonOK ;

    CE7Layer*            m_pParentLayer ;

    CCLabelTTF*          m_pStringLable ;
} ;

#endif










